package com.encryption.util;

import java.util.Random;

public class RandomNumberUtil {

	public static String random(int num) {
		Random random = new Random();
		String result = "";

		for (int i = 0; i < num; i++) {
			result += random.nextInt(10);
		}

		return result;
	}
	
	public static void main(String[] args) {
		System.out.println(random(6));
		System.out.println(random(6));
		System.out.println(random(6));
		System.out.println(random(6));
		System.out.println(random(6));
		System.out.println(random(6));
		System.out.println(random(6));
		System.out.println(random(6));
		System.out.println(random(6));
	}
}
